namespace ZR.Model.Models.ProductionControl
{
    /// <summary>
    /// 扫码信息
    /// </summary>
    [SugarTable("scan_info")]
    public class ScanInfo : BaseEntity
    {
        /// <summary>
        /// 序号
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// 产线代号
        /// </summary>
        [SugarColumn(ColumnName = "line_code")]
        public string LineCode { get; set; }

        /// <summary>
        /// 工位号
        /// </summary>
        [SugarColumn(ColumnName = "station_code")]
        public string StationCode { get; set; }

        /// <summary>
        /// 订单代号
        /// </summary>
        [SugarColumn(ColumnName = "order_code")]
        public string OrderCode { get; set; }

        /// <summary>
        /// 产品类型
        /// </summary>
        [SugarColumn(ColumnName = "product_type")]
        public string ProductType { get; set; }

        /// <summary>
        /// 产品ID（唯一）
        /// </summary>
        [SugarColumn(ColumnName = "product_id")]
        public string ProductId { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        [SugarColumn(ColumnName = "material_name")]
        public string MaterialName { get; set; }

        /// <summary>
        /// 物料条码
        /// </summary>
        [SugarColumn(ColumnName = "material_sn")]
        public string MaterialSn { get; set; }

        /// <summary>
        /// 物料号
        /// </summary>
        [SugarColumn(ColumnName = "material_code")]
        public string MaterialCode { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "creator_name")]
        public string CreatorName { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [SugarColumn(ColumnName = "creation_time")]
        public DateTime? CreationTime { get; set; }

        /// <summary>
        /// MES上传标志位（0：未上传，1：已上传）
        /// </summary>
        [SugarColumn(ColumnName = "mes_pushed")]
        public int? MesPushed { get; set; }
    }
}